import { RouteRecordRaw } from "vue-router";

const authRoutes: RouteRecordRaw[] = [
  {
    path: "/",
    name: "Home",
    component: () => import("@/views/Home/index.vue"),
    meta: {
      requiresAuth: true,
      title: "首页",
      icon: "home",
      layout: true,
    },
  },
  {
    path: "/about",
    name: "About",
    component: () => import("@/views/about/index.vue"),
    meta: {
      requiresAuth: true,
      title: "仪表盘",
      icon: "about",
      layout: true,
    },
  },
  {
    path: "/404",
    name: "NotFound",
    component: () => import("@/views/exception/404.vue"),
    meta: {
      requiresAuth: true,
      title: "404",
      layout: false,
    },
  },
  {
    path: "/403",
    name: "403",
    component: () => import("@/views/exception/403.vue"),
    meta: {
      requiresAuth: true,
      title: "403",
      layout: false,
    },
  },
  {
    path: "/500",
    name: "500",
    component: () => import("@/views/exception/500.vue"),
    meta: {
      requiresAuth: true,
      title: "500",
      layout: false,
    },
  },
  {
    path: "/:pathMatch(.*)*",
    redirect: "/404",
    meta: {
      requiresAuth: true,
      layout: false,
    },
  },
  //   {
  //     path: '/user',
  //     name: 'User',
  //     component: () => import('@/views/layout/UserLayout.vue'),
  //     meta: {
  //       requiresAuth: true,
  //       title: '用户管理'
  //     },
  //     children: [
  //       {
  //         path: 'profile',
  //         name: 'UserProfile',
  //         component: () => import('@/views/user/Profile.vue'),
  //         meta: {
  //           requiresAuth: true,
  //           title: '个人中心'
  //         }
  //       }
  //     ]
  //   }
];

export default authRoutes;
